package com.ita.service.impl;

import java.util.List;

import com.ita.dao.CustomerDao;
import com.ita.dao.impl.CustomerDaoImpl;
import com.ita.pojo.Customer;
import com.ita.service.CustomerManager;

public class CustomerManagerImpl implements CustomerManager {

	private CustomerDao customerDao;

	public CustomerManagerImpl() {

		customerDao = new CustomerDaoImpl();
	}

	@Override
	public int addCustomer(Customer c) {

		return customerDao.addCustomer(c);
	}

	@Override
	public int delCustomer(Integer id) {

		return customerDao.delCustomer(id);
	}

	@Override
	public List<Customer> findAllCustomer() {

		return customerDao.findAllCustomer();
	}

	@Override
	public Customer findCustomer(Integer id) {

		return customerDao.findCustomer(id);
	}

	@Override
	public int updateCustomer(Customer c) {

		return customerDao.updateCustomer(c);
	}

}
